<?php
declare (strict_types = 1);

namespace app;

use think\Service;

/**
 * 应用服务类
 */
class AppService extends Service
{
    public function register()
    {
        // 服务注册
        $this->app->bind("app\admin\service\interface\UserService", "app\admin\service\UserServiceImpl");
        $this->app->bind("app\admin\service\interface\CategoryService", "app\admin\service\CategoryServiceImpl");
        $this->app->bind("app\admin\service\interface\ConfigService", "app\admin\service\ConfigServiceImpl");
        $this->app->bind("app\admin\service\interface\CacheService", "app\admin\service\CacheServiceImpl");
        $this->app->bind("app\admin\service\interface\NavService", "app\admin\service\NavServiceImpl");
        $this->app->bind("cacheService", "app\admin\service\CacheServiceImpl");
    }

    public function boot()
    {
        // 服务启动
    }
}
